ScxV6Object.References Method

Returns a list of objects referring to this database object. The list is returned as an ScxV6Objects collection.

Remarks

This can be useful when trying to determine the effect of a configuration action involving this object. For example, deleting this object will remove any references to it from objects in the database.

Example:

The following example written in VB.NET retrieves a list of objects that reference a point.

Dim Svr As ScxV6DbClient.ScxV6Server

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

Dim Obj As ScxV6DbClient.ScxV6Object

Obj = Svr.FindObject("Group.Test Point")

Console.WriteLine("The following objects reference this point:")

Dim RefObj As ScxV6DbClient.ScxV6Object

For Each RefObj In Obj.References

Console.WriteLine(RefObj.FullName)

Next

' Disconnect

Svr.Disconnect()

This produces the following output:

The following objects reference this point:

Group.Summary Mimic


Disclaimer

Geo SCADA Expert 2020